package com.mmg.spzx.order;

import com.mmg.spzx.common.annotation.EnableUserTokenFeignInterceptor;
import com.mmg.spzx.common.annotation.EnableUserWebMvcConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableUserWebMvcConfiguration
// 扫描公共模块下的所有类，不加这句无法扫到公共模块下的类
@ComponentScan(basePackages = {"com.mmg.spzx"})
@EnableUserTokenFeignInterceptor
@EnableFeignClients(basePackages = {
        "com.mmg.spzx.feign.cart",
        "com.mmg.spzx.feign.product",
        "com.mmg.spzx.feign.user"
})
@SpringBootApplication
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
